<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Selection</title>
</head>
<body>
<f:view>
	<a4j:form>
		<rich:panel header="Select the run name" style="width: 500px">
			<h:selectOneMenu id="runselection" value="#{runBean.selectedRun}">
				<f:selectItems value="#{runBean.runs}"/>
				<a4j:support event="onchange" reRender="selectText,binselection" limitToList="true"/>
			</h:selectOneMenu>
			<br/><br/>
			<h:selectManyListbox id="binselection">
				<f:selectItems value="#{runBean.bins}"/>				
			</h:selectManyListbox>
			<br/><br/>
			<h:outputText id="selectText" value="here: #{runBean.selectedRun}"/>
			
		</rich:panel>
	</a4j:form>
</f:view>
</body>
</html>